import config from "@/config"
import http from "@/utils/request"

export default {
    editionPrint:{
        url: `${config.API_URL}/adminapi/shop.shopTemplate/printTemplate`,
        name: "开发--版单列表--打印版单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    editionPrintAll:{
        url: `${config.API_URL}/adminapi/shop.shopTemplate/batchPrintTemplate`,
        name: "开发--版单列表--批量打印版单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    orderPrint:{
        url: `${config.API_URL}/adminapi/order.shopOrder/getProcessSheet`,
        name: "打印工艺单--母单列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    orderPrintAll:{
        url: `${config.API_URL}/adminapi/order.shopOrder/batchProcessSheet`,
        name: "打印工艺单--母单列表 -- 批量",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    childPrint:{
        url: `${config.API_URL}/adminapi/order.shopOrderChild/getProcessSheet`,
        name: "打印工艺单--待发货",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    childPrintAll:{
        url: `${config.API_URL}/adminapi/order.shopOrderChild/batchProcessSheet`,
        name: "打印工艺单--待发货 -- 批量",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    getPickingList:{
        url: `${config.API_URL}/adminapi/order.shopOrder/getPickingList`,
        name: "打印拣货单--待通知发货",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    getPickingListChild:{
        url: `${config.API_URL}/adminapi/order.shopOrderChild/getPickingList`,
        name: "打印拣货单--待通知发货 -- 子单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    createDayBill:{
        url: `${config.API_URL}/adminapi/order.shopOrderChild/createDayBill`,
        name: "生成日账单--已入库管理",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
	},
    cum:{
        createDayBill:{
            url: `${config.API_URL}/adminapi/order.shopOrderChild/createDayBill`,
            name: "生成日账单--已入库管理",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    loomBarcodePrint:{
        url: `${config.API_URL}/adminapi/produce.shopProduce/loomBarcodePrint`,
        name: "生产--织机管理--织机条码打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    goodsPrint:{
        url: `${config.API_URL}/adminapi/shop.shopGoods/goodsPrint`,
        name: "商品--商品信息--打印尺寸单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    goodsPrintAll:{
        url: `${config.API_URL}/adminapi/shop.shopGoods/batchGoodsPrint`,
        name: "商品--商品信息--打印尺寸单批量",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    goodsPrintAllDaHuo:{
        url: `${config.API_URL}/adminapi/shop.shopGoods/dahuoBarcodePrint`,
        name: "商品--商品信息--打印大货条码批量",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
	},
    qrcodePrint:{
        url: `${config.API_URL}/adminapi/material.shopMaterial/qrcodePrint`,
        name: "物料--二维码管理--打印二维码",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    contractPrint:{
        url: `${config.API_URL}/adminapi/produce.shopProduce/printContract`,
        name: "生产--发织合同明细--打印合同",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    sendPrint:{
        url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/printDeliver`,
        name: "生产--发织收货--打印收货单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    timePrint:{
        url: `${config.API_URL}/adminapi/produce.produceContract/timingLoomBarcodePrint`,
        name: "生产--织机--条码打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    gongziPrint:{
        url: `${config.API_URL}/adminapi/finance.staffSalary/salaryPrint`,
        name: "财务--员工工资--工资打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    setPrint:{
        url: `${config.API_URL}/adminapi/produce.produceContractStatement/batchPrint`,
        name: "生产--缝挑结算--结算单打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    shopOrderPrint:{
        url: `${config.API_URL}/adminapi/material.shopMaterialPurchaseOrder/batchPrint`,
        name: "采购--待收,待发--采购单打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    contractDeliveryPrint:{
        url: `${config.API_URL}/adminapi/produce.produceContract/printContractDelivery`,
        name: "生产--发织合同明细--收货单打印",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
}